<?php
	 $slideshow_type= get_theme_option('slideshow','slideshow_type');
	 if(isset($_GET['slider'])){ $_SESSION['slider'] = $_GET['slider'];}
	 $enable_demo_link = get_theme_option('general','enable_demo_link');
	 if(isset($_SESSION['slider']) && $enable_demo_link =='true')
	 {		
	 		//TT_load_skin();
			//TT_load_js_skin(); 
			$slider_enable_arrow = get_theme_option('slideshow','slider_enable_arrow');
        	  $slider_enable_control = get_theme_option('slideshow','slider_enable_control');
        	  $slider_num_of_item_display = get_theme_option('slideshow','slider_num_of_item_display');
		    if($_SESSION['slider'] == 'slider_type_diapo')			
			{

			 	 require_once('diapo.php');
			}		
			else if($_SESSION['slider'] == 'slider_type_skitter')			
			{
			 	 require_once('skitter.php');
			}		
			else if($_SESSION['slider'] == 'slider_type_nivo')			
			{
			 	 require_once('nivo.php');
			}		
			else if($_SESSION['slider'] == 'slider_type_zaccordion')			
			{
			 	 require_once('zaccordion.php');

			}		
			else if($_SESSION['slider'] == 'slider_type_image')			
			{
			 	 require_once('image_static.php'); 
			}		
			else if($_SESSION['slider'] == 'slider_type_video')			
			{
			 	 require_once('video.php'); 
			}		

	 }else
	 {
	  if( $slideshow_type <> 'slideshow_type_noenable' &&  $slideshow_type == 'slideshow_type_slider' ):
    	  $slider_enable_arrow = get_theme_option('slideshow','slider_enable_arrow');
    	  $slider_enable_control = get_theme_option('slideshow','slider_enable_control');
    	  $slider_num_of_item_display = get_theme_option('slideshow','slider_num_of_item_display');
    	  $slider_type = get_theme_option('slideshow','slider_type');
    	  if($slider_type == 'slider_type_diapo'):
    	  	 require_once('diapo.php'); 
    	  elseif ($slider_type == 'slider_type_skitter'):
    	     require_once('skitter.php');
    	  elseif ($slider_type == 'slider_type_nivo'):
    	     require_once('nivo.php');
    	  elseif ($slider_type == 'slider_type_zaccordion'):
    	     require_once('zaccordion.php');
    	  endif;
	 
	 elseif( $slideshow_type == 'slideshow_type_image'):
	 
	 require_once('image_static.php');
	 
	 elseif( $slideshow_type == 'slideshow_type_video'):
	 
	 require_once('video.php');
	 	 
	 endif;
	} 
	 
?>